﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.sim {
    import Engine.Helpers.*;

    public class PathElement {

        public static const TYPE_ROAD:int = 0;
        public static const TYPE_NONROAD:int = 1;

        public var type:int;
        public var basePosition:Vector3;
        public var offsetPosition:Vector3;

        public function PathElement(_arg1:Vector3, _arg2:Vector3=null, _arg3:int=0){
            this.type = _arg3;
            this.basePosition = _arg1.clone();
            this.offsetPosition = ((_arg2)!=null) ? _arg2.clone() : _arg1.clone();
        }
        public static function createInstance(_arg1:Vector3, ... _args):PathElement{
            return (new PathElement(_arg1));
        }
        public static function extractBasePosition(_arg1:PathElement, ... _args):Vector3{
            return (_arg1.basePosition);
        }
        public static function extractOffsetPosition(_arg1:PathElement, ... _args):Vector3{
            return (_arg1.offsetPosition);
        }

    }
}//package Classes.sim 
